
package com.tenentia.pcmps.swm.data.beans;

import java.util.Date;

import org.apache.commons.beanutils.BeanUtils;

import com.tenentia.pcmps.swm.Constants;

/**
 * 
 * @author tEnEntia, S.L.N.E.
 * 
 */
public class Person {

	private Long internalID;

	private String externalID;

	private String gender;

	private String name;

	private String surname1;
	
	private String surname2;

	private Date birthDate;

	private PersonContactData personContactData;
	
	private String nif;

	public Person() {

		super();
	}
	
	

	@Override
	public String toString() {

		try {
			return BeanUtils.describe(this).toString();
		} catch (Exception e) {
			return Constants.STRING_EMPTY;
		}
	}

	/**
	 * @return the internalID
	 */
	public Long getInternalID() {

		return internalID;
	}

	/**
	 * @return the externalID
	 */
	public String getExternalID() {

		return externalID;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {

		return gender;
	}

	/**
	 * @return the name
	 */
	public String getName() {

		return name;
	}

	/**
	 * @return the birthDate
	 */
	public Date getBirthDate() {

		return birthDate;
	}

	/**
	 * @return the personContactData
	 */
	public PersonContactData getPersonContactData() {

		return personContactData;
	}

	/**
	 * @param internalID
	 *            the internalID to set
	 */
	public void setInternalID(Long internalID) {

		this.internalID = internalID;
	}

	/**
	 * @param externalID
	 *            the externalID to set
	 */
	public void setExternalID(String externalID) {

		this.externalID = externalID;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender(String gender) {

		this.gender = gender;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {

		this.name = name;
	}

	/**
	 * @param birthDate
	 *            the birthDate to set
	 */
	public void setBirthDate(Date birthDate) {

		this.birthDate = birthDate;
	}

	/**
	 * @param personContactData
	 *            the personContactData to set
	 */
	public void setPersonContactData(PersonContactData personContactData) {

		this.personContactData = personContactData;
	}



	/**
	 * @param nif the nif to set
	 */
	public void setNif(String nif) {
		this.nif = nif;
	}



	/**
	 * @return the nif
	 */
	public String getNif() {
		return nif;
	}



	/**
	 * @param surname1 the surname1 to set
	 */
	public void setSurname1(String surname1) {
		this.surname1 = surname1;
	}



	/**
	 * @return the surname1
	 */
	public String getSurname1() {
		return surname1;
	}



	/**
	 * @param surname2 the surname2 to set
	 */
	public void setSurname2(String surname2) {
		this.surname2 = surname2;
	}



	/**
	 * @return the surname2
	 */
	public String getSurname2() {
		return surname2;
	}

}
